package book;

import java.util.Scanner;

public class Book {
        private String name ;
        private String authr ;
        private int price ;
        private String type ;
        private  boolean isborrowed;
        public Book(String name,String authr,int price,String type){
                this.name = name;
                this.authr = authr;
                this.price = price;
                this.type = type;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public String getAuthr() {
                return authr;
        }

        public void setAuthr(String authr) {
                this.authr = authr;
        }

        public int getPrice() {
                return price;
        }

        public void setPrice(int price) {
                this.price = price;
        }

        public String getType() {
                return type;
        }

        public void setType(String type) {
                this.type = type;
        }

        public boolean isIsborrowed() {
                return isborrowed;
        }

        public void setIsborrowed(boolean isborrowed ) {
                this.isborrowed = isborrowed;
        }

        @Override
        public String toString() {
                return "Book{" +
                        "name='" + name + '\'' +
                        ", authr='" + authr + '\'' +
                        ", price=" + price +
                        ", type='" + type + '\'' +
                        ", isborrowed=" + isborrowed +
                        '}';
        }
}
